<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<table class="fullwidth" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<td width="20%">用户</td>
			<td width="10%">社交账号</td>
			<td width="20%">用户设备</td>
			<td width="10%">活跃时间</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="user" items="${users }">
			<tr class="odd">
				<c:if test="${user.USER_TYPE eq 'ANON' }">
					<td>匿名用户</td>
					<td></td>
				</c:if>
				<c:if test="${user.USER_TYPE ne 'ANON' }">
					<td>
						<div style="float: left;">
							<c:if test="${user.AVATAR eq null }">
								<img
									src="${pageContext.request.contextPath }/manage/images/avatar.gif" />
							</c:if>
							<c:if test="${user.AVATAR ne null }">
								<img src="${user.AVATAR }" width="54" class="portrait">
							</c:if>
						</div>
						<div style="float: left; height: 50px; vertical-align: middle;">
							<c:if test="${user.PROVIDER eq 'PHONE' }">
								<p style="line-height: 1px; margin-top: 15px">用户名:
									${user.USER_NAME }</p>
								<c:if test="${user.USER_AILAS ne user.USER_NAME}">
									<p style="line-height: 1px;">昵称： ${user.USER_AILAS }</p>
								</c:if>
							</c:if>
						</div>
						<div style="clear: both;"></div>
					</td>
					<td><c:forEach var="link" items="${user.LINKS }">
							<c:if test="${link.PROVIDER eq 'T_SINA' }">
								<div class="icon_weibo_xl">${link.USER_ALIAS }</div>
							</c:if>
							<c:if test="${link.PROVIDER eq 'T_TENCENT' }">
								<div class="icon_weibo_tx">${link.USER_ALIAS }</div>
							</c:if>
						</c:forEach></td>
				</c:if>
				<td><c:forEach var="device" items="${user.DEVICES }">
										   ${ device.DEVICE_MODEL}
									    </c:forEach></td>
				<td><fmt:formatDate value="${user.LAST_ACTIVITY_DT}"
						pattern="yyyy-MM-dd hh:mm:ss" /></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<input type="hidden" name="initSelectedTotalCount"
	value="${totalCount }" />